package com.it.a02threadcase2;

public class MyRun implements Runnable {

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            //获取当前线程
            Thread t = Thread.currentThread();
            System.out.println(t.getName()+"helloworld");
        }
    }
}
